* {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #a8c0fc;
}

.shell {
    position: relative;
    width: 700px;
    height: 400px;
    border-radius: 5px;
    border: 10px solid #fbfdff;
    overflow-x: hidden;
    box-shadow: 5px 5px 10px #000;
}

.images {
    width: 300%;
    height: 100%;
    display: flex;
    position: absolute;
    left: 0;
    transition: 0.2s;
}

.img {
    width: 100%;
    background-size: cover;
}

.images li:nth-child(1) {
    background-image: url(imgs/pexels-pixabay-208147.jpg);
}

.images li:nth-child(2) {
    background-image: url(imgs/pexels-pixabay-301920.jpg);
}

.images li:nth-child(3) {
    background-image: url(imgs/pexels-skitterphoto-591652.jpg);
}

.min-imgs {
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    width: 40%;
    height: 20%;
    right: 10px;
    bottom: 10px;
    z-index: 999;
}

.min-imgs .min-img {
    width: 40px;
    height: 40px;
    border: 5px solid #fbfdff;
    border-radius: 50%;
    cursor: pointer;
    /* 照片偏移量 */
    background-position: -20px 0;
    /* 加入这个属性，让小的div也能覆盖大的图，就是让背景自动收缩 */
    background-size: cover;
}

.min-imgs li:nth-child(1) {
    background-image: url(imgs/pexels-pixabay-208147.jpg);
}

.min-imgs li:nth-child(2) {
    background-image: url(imgs/pexels-pixabay-301920.jpg);
}

.min-imgs li:nth-child(3) {
    background-image: url(imgs/pexels-skitterphoto-591652.jpg);
}

.button {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    user-select: none;
}

.button-left,
.button-right {
    outline: none;
    border: none;
    width: 10%;
    background: rgba(168, 192, 252, 0.7);
    font-size: 40px;
    cursor: pointer;
}